<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>  
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1" align="left">
		<thead>
			<tr>
			    <th>账号</th>
				<th>姓名</th>
				<th>密码</th>
				<th>性别</th>
				<th>职位</th>
				<th>部门</th>
				<th>员工编号</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
		<s:hidden name="id" value="%{userId}"></s:hidden>
			<s:iterator value="usersList"  >
				<tr>
				    <td><s:property value="userId"/></td>
					<td><s:property value="userName" /></td>
					<td><s:property value="password" /></td>
					<td><s:if test="sex == 1">男</s:if><s:else>女</s:else></td>
					<td><s:property value="duty" /></td>
					<td><s:property value="department" /></td>
					<td><s:property value="employeeNumber" /></td>
					<td><s:form action="transferAction_transfer" namespace="/">
					<%// <s:set name="userId" value="<s:property value="userId" />"></s:set><!-- 设置自动应以标签 --> %>
					      <s:hidden name="userId" value="%{userId}"></s:hidden>
					      <input type="submit" value="人事调动" />
					    </s:form>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</body>
</html>